﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace CalculateResistance
{
    public class Point
    {
        public string Id { get; set; }
        public List<Line> Lines { get; set; }
        public bool IsStartPoint { get; set; }
        public bool IsEndPoint { get; set; }

        public int GetLinesCount()
        {
            if (Lines == null) return 0;
            return Lines.Count;
        }

        public override bool Equals(object obj)
        {
            Point p = obj as Point;
            if (p == null) return false;
            return p.Id == this.Id;
        }
    }
}
